var Mockjs = require('mockjs')

const rankingListMock = function(app) {
	var data = Mockjs.mock({
		// 属性 list 的值是一个数组，其中元素的数量从 1 到 10 个都有可能，随机
		success: true,
		message: "操作成功！",
		errno: 0,
		total: 13,
		size: 10,
		current: 1,
		orders: [],
		optimizeCountSql: true,
		hitCount: false,
		searchCount: true,
		pages: 2,
		result: {
			records: [{
				id: 1,
				name: "韩佳昊",
				avatar: "https://langyayanxuan.com/mall/20201028/罗莱Lacasa优加棉花糖3+5子母被-商品主图1.jpg",
				productSn: "",
				score: 3876,
				signature: "钓的不是鱼，是寂寞"
			},{
				id: 2,
				name: "丁志刚",
				avatar: "https://langyayanxuan.com/mall/20201028/罗莱Lacasa优加棉花糖3+5子母被-商品主图1.jpg",
				productSn: "",
				score: 3029,
				signature: "钓的不是鱼，是寂寞"
			},{
				id: 3,
				name: "程泓今",
				avatar: "https://langyayanxuan.com/mall/20201028/罗莱Lacasa优加棉花糖3+5子母被-商品主图1.jpg",
				productSn: "",
				score: 2878,
				signature: "钓的不是鱼，是寂寞"
			},{
				id: 38,
				name: "路人甲",
				avatar: "https://langyayanxuan.com/mall/20201028/罗莱Lacasa优加棉花糖3+5子母被-商品主图1.jpg",
				productSn: "",
				score: 3876,
				signature: "钓的不是鱼，是寂寞"
			},{
				id: 38,
				name: "路人乙",
				avatar: "https://langyayanxuan.com/mall/20201028/罗莱Lacasa优加棉花糖3+5子母被-商品主图1.jpg",
				productSn: "",
				score: 3876,
				signature: "钓的不是鱼，是寂寞"
			},{
				id: 38,
				name: "路人丙",
				avatar: "https://langyayanxuan.com/mall/20201028/罗莱Lacasa优加棉花糖3+5子母被-商品主图1.jpg",
				productSn: "",
				score: 3876,
				signature: "钓的不是鱼，是寂寞"
			}]
		}
	});
	return data
}

module.exports = rankingListMock;
